package com.hanserwei.community.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hanserwei.community.entity.po.Repair;
import com.hanserwei.community.entity.request.repair.RepairQueryRequest;
import com.hanserwei.community.entity.request.repair.RepairSaveRequest;
import com.hanserwei.community.entity.vo.RepairVO;

public interface RepairService extends IService<Repair> {

    Page<RepairVO> pageRepairs(RepairQueryRequest request);

    RepairVO getRepairDetail(Integer id);

    boolean createRepair(RepairSaveRequest request);

    boolean updateRepair(Integer id, RepairSaveRequest request);

    QueryWrapper<Repair> buildQueryWrapper(RepairQueryRequest request);
}
